export class Data {
  public position: number[] = [];
  public texcoord: number[] = [];
  public normal: number[] = [];
  public color: number[] = [];
  public indices: number[] = [];
}

export class Mesh {
  public name: string = "default";
  public data: Data = new Data();
  public materialName: string = "";
  public group: string = "";
  public material = null;
  public isEmpty: boolean = true;

  pushPositions(arr) {
    this.isEmpty = false;
    this.data.position.push(...arr);
  }

  pushTexcoords(arr) {
    this.data.texcoord.push(...arr);
  }

  pushNormals(arr) {
    this.data.normal.push(...arr);
  }

  pushColors(arr) {
    this.data.color.push(...arr);
  }

  pushIndices(arr) {
    this.data.indices.push(...arr);
  }
}
